package com.oa.pm.vo;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author syb
 * date 2019/1/29
 */
@Data
public class LaborContractListVO {

    @ApiModelProperty(value = "主键（劳动合同id）")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "劳动合同签约单位")
    private String company;

    @ApiModelProperty(value = "所属部门")
    private String department;

    @ApiModelProperty(value = "岗位")
    private String post;

    @ApiModelProperty(value = "职务")
    private String duty;

    @ApiModelProperty(value = "劳动合同开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date laborContractStartTime;

    @ApiModelProperty(value = "劳动合同结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date laborContractEndTime;

    @ApiModelProperty(value = "劳动合同提醒时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date laborContractReminderTime;

    @ApiModelProperty(value = "试用期结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date probationPeriodEndTime;

    @ApiModelProperty(value = "试用期结束提醒时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date probationPeriodEndRemindeTime;

    @ApiModelProperty(value = "已签合同次数")
    private Integer contractsSignedNum;

    @ApiModelProperty(value = "合同期种类（1-固定期限 2-咨询服务协议 3-无固定期限 4-雇佣协议 5-实习合同）")
    private String contractType;

    @ApiModelProperty(value = "是否续签(1-是   2-否)")
    private Integer isRenew;

    @ApiModelProperty(value = "备注")
    private String remake;

    @ApiModelProperty(value = "附件")
    private String file;

}
